home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * GDS206 : ペイント
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned char *GDS_append(unsigned char *wp,unsigned int size);
-
- void GDS_paint(unsigned char *wp,signed int x1,signed int y1,unsigned int color) {
-
- wp=GDS_append(wp,12);
- *(unsigned int *)(wp+0)=0x4000+10*32+10;
- *(unsigned int *)(wp+2)=5;
- *(signed int *)(wp+4)=x1;
- *(signed int *)(wp+6)=y1;
- *(unsigned int *)(wp+8)=1;
- *(unsigned int *)(wp+10)=color;
- }